package com.pentofab.payrollmanagement.ui.controller;

public class UIMessages {

	public interface FileName{
	
		public static final String COMPANY_LIST = "CompanyList.csv";
		public static final String UNIT_LIST = "UnitList.csv";
		public static final String DEPT_LIST = "DepartmentList.csv";
		public static final String DESIG_LIST = "DesignationList.csv";
		public static final String CATEG_LIST = "CategoryList.csv";
		public static final String ATT_LIST = "AttendanceList.csv";
		public static final String EMP_LIST = "EmployeeList.csv";
		public static final String SAL_LIST = "SalaryStractureList.csv";
	}
	
	public interface UITitles {
		public static final String DEPARTMENT_ADD = "Add/Update Department";
		public static final String ATTENDANCE = "Attendance";
		public static final String ADD_UPDATE_DESIGNATION = "Add/Update designation";
		public static final String ADD_EMPLOYEE_CATEGORY = "Add/Update employee category";
		public static final String ADD_UPDATE_COMPANY = "Add/Update Company";
		public static final String ADD_EMPLOYEE = "Add employee";
		public static final String COMPANIES = "Companies";
		public static final String LOGIN_FORM = "Login";
		public static final String Leave_FORM = "Leave Module";
		public static final String USER_ACCOUNTS = "User Accounts Module";

	}

	public static final String UNKNOW_DATABASE_ERROR = "Operation failed due to unknown database error.";

	public static final String DEPARTMENT_ADD_SUCCESS = "Department %s added successfully.";
	public static final String DUPLICATE_DEPARTMENT_CODE = "Department already exists. Please select a unique department code.";
	public static final String DEPARTMENT_CODE_VALIDATION_MESSAGE = "Department code should be exactly 2 characters";
	public static final String DEPARTMENT_DESCRIPTION_VALIDATION_MESSAGE = "Description cannot be empty.";
	public static final String DEPARTMENT_UPDATE_SUCCESS = "Department %s updated successfully.";

	public static final String DESIGNATION_ADD_SUCCESS = "Designation %s is added successfully.";
	public static final String DUPLICATE_DESIGNATION_CODE = "Designation already exists. Please select a unique designation code.";
	public static final String DESIGNATION_CODE_VALIDATION_MESSAGE = "Designation code should be exactly 2 characters";
	public static final String DESIGNATION_DESCRIPTION_VALIDATION_MESSAGE = "Description cannot be empty.";
	public static final String DESIGNATION_UPDATE_SUCCESS = "Designation %s is updated successfully.";

	public static final String EMP_CATEGORY_ADD_SUCCESS = "Employee category %s added successfully.";
	public static final String DUPLICATE_EMP_CATEGORY_CODE = "Employee category already exists. Please select a unique category code.";
	public static final String EMP_CATEGORY_CODE_VALIDATION_MESSAGE = "Employee category code should be exactly 2 characters";
	public static final String EMP_CATEGORY_DESCRIPTION_VALIDATION_MESSAGE = "Employee category description cannot be empty.";
	public static final String EMP_CATEGORY_UPDATE_SUCCESS = "Employee category %s added successfully.";

	public static final String COMPANY_NAME_VALIDATION_MESSAGE = "Enter a valid name.";
	public static final String COMPANY_CODE_VALIDATION_MESSAGE = "Code should be exactly 2 characters long.";
	public static final String COMPANY_ADDRESS_VALIDATION_MESSAGE = "Enter a valid address.";
	public static final String COMPANY_CITY_VALIDATION_MESSAGE = "Enter a valid city.";
	public static final String COMPANY_STATE_VALIDATION_MESSAGE = "Enter a valid state.";
	public static final String COMPANY_COUNTRY_VALIDATION_MESSAGE = "Enter a valid country.";
	public static final String COMPANY_ZIPCODE_VALIDATION_MESSAGE = "Enter a valid Zipcode.";
	public static final String COMPANY_TELEPHONE_VALIDATION_MESSAGE = "Enter a valid telephone number.";
	public static final String COMPANY_EMAIL_VALIDATION_MESSAGE = "Enter a valid email address.";
	public static final String DUPLICATE_COMPANY_CODE_ERROR_MESSAGE = "Entry already exists. Please select a unique code";
	public static final String COMPANY_ADD_SUCCESS = "Entry %s is added successfully.";
	public static final String COMPANY_UPDATE_SUCCESS = "Entry %s is updated successfully.";
	public static final String BANK_ADD_SUCCESS = "Entry %s is added successfully.";
	public static final String BANK_UPDATE_SUCCESS = "Entry %s is updated successfully.";
	
	public static final String UNIT_CODE_VALIDATION_MESSAGE = "UNIT code should be exactly 2 characters long.";

	public static final String EMPLOYEE_NAME_VALIDATION_MESSAGE = "Enter a valid name";
	public static final String EMPLOYEE_ID_VALIDATION_MESSAGE = "Enter a valid Employee ID";
	public static final String EMPLOYEE_CODE_VALIDATION_MESSAGE = "Employee code should be exactly 2 characters";
	public static final String EMPLOYEE_TELEPHONE_VALIDATION_MESSAGE = "Enter a valid phone number";
	public static final String EMPLOYEE_ADDRESS_VALIDATION_MESSAGE = "Enter a valid address";
	public static final String EMPLOYEE_CITY_VALIDATION_MESSAGE = "Enter a valid city";
	public static final String EMPLOYEE_STATE_VALIDATION_MESSAGE = "Enter a valid state";
	public static final String EMPLOYEE_COUNTRY_VALIDATION_MESSAGE = "Enter a valid country";
	public static final String EMPLOYEE_ZIPCODE_VALIDATION_MESSAGE = "Enter a valid zipcode";
	public static final String EMPLOYEE_DOJ_VALIDATION_MESSAGE = "Enter a valid Date of joining in dd/mm/yyyy format";
	public static final String EMPLOYEE_DOB_VALIDATION_MESSAGE = "Enter a valid Date of Birth in dd/mm/yyyy format";
	public static final String EMPLOYEE_DEPARTMENT_VALIDATION_MESSAGE = "Select a valid department. If there are no departments please add a department first";
	public static final String EMPLOYEE_DESIGNATION_VALIDATION_MESSAGE = "Select a valid designation. If there are no designations please add a designation first";
	public static final String EMPLOYEE_CATEGORY_VALIDATION_MESSAGE = "Select a valid employee category. If there are no categories please add a category first";
	public static final String EMPLOYEE_SEX_VALIDATION_MESSAGE = "Select a valid sex";
	public static final String EMPLOYEE_HOURS_VALIDATION_MESSAGE = "Number of hours should be between 0 and 24";
	public static final String DUPLICATE_EMPLOYEE_ENTRY_ERROR_MESSAGE = "Employee with same ID already exists. Enter a unique ID";
	public static final String EMPLOYEE_ADD_SUCCESS = "Employee %s added successfully.";
	public static final String EMPLOYEE_UPDATE_SUCCESS = "Employee %s updated successfully.";
	public static final String FAILED_TO_DELETE_EMPLOYEE = "Employee %s deletion failed.";
	public static final String EMPLOYEE_DELETION_SUCCESS = "Employee %s deleted successfully.";
	public static final String MODIFY_DELETED_EMPLOYEE = "Employee %s deleted. So you want to modify employee and make him active?";
	public static final String WEEKLY_OFF_EMPLTY = "Please select weekly off for employee.";
	
	//Leave
	public static final String LEAVE_TYPE = "Enter Valid Leave Type.";
	public static final String FROM_YEAR =  "Select Valid year for from date.";
	public static final String FROM_MONTH = "Select valid month for from date";
	public static final String FROM_DAY = "Select day month for from date";
	public static final String TO_YEAR =    "Select Valid year for todate.";
	public static final String TO_MONTH = "Select valid month for todate";
	public static final String TO_DAY = "Select day month for todate";
	public static final String NUMBER_OF_DAYS ="Enter Valid Number of Days.";
	public static final String LEAVE_REASON = "Plese enter reason for leave.";
	public static final String LEAVE_BALANCE_ERROR = "Error while getting leave balance for empoyee : ";
	public static final String GREATER_NO_OF_DAYS = "Number of leave applied days can't be greater than remaining balance.";
	public static final String LEAVE_TYPE_CL = "Max allowed number of days for type CL is 3";
	public static final String APPLIED_LEAVE_SUCCESSFULLY = "Leave Application was successful.";
	public static final String TO_DATE_BEFORE_FROM_DATE =" :to date %s is before from date : %s ";
	public static final String SELECT_ROW_TO_DELETE = "Please select a row to delete.";
	public static final String CONFIRM_DELETE = "Are you sure you want to delete selected row.?";
	public static final String CONFIRM_MODIFY = "Are you sure you want to modify selected row.?";
	public static final String FAILED_TO_CANCEL_LEAVE = "Unable to process leave cancel request.";
	public static final String LEAVE_CANCELLED = "Leave cancelled successfuly.";
	
	//Attendance
	public static final String PLEASE_SELECT_LOGIN_TYPE = "Please select login type before Proceeding to make attendance entry.";
	public static final String LOG_IN_TIME_CANT_BE_EMPTY_OR_NULL = "Login time can't be null or empty, Please enter login time.";
	public static final String LOG_OUT_TIME_CANT_BE_EMPTY_OR_NULL = "Logout time can't be null or empty, Please enter logout time.";
	public static final String ERROW_WHILE_DELETIN_ATTENDANCE = "Error while deleting selected attendance entry";
	public static final String ERROW_WHILE_ADDING_ATTENDANCE = "Error while adding new attendance entry";
	public static final String ERROW_WHILE_MODIFYING_ATTENDANCE = "Error while modifying selected attendance entry";
	public static final String TO_DATE_LATER_THAN_TODAY = "To date %s can't be later than today.";
	public static final String ATTENDANCE_ENTRY_ADDED_SUCCESSFULLY = "Addtion of entry to attendance successful";
	public static final String ATTENDANCE_ENTRY_MODIFIED_SUCCESSFULLY = "Successfully modified attendance entry.";
	public static final String LOGINTIME_EARLIERTHAN_LAST_LOGOUT = "Login time can't be earlier than last login time.";
	public static final String LAST_LOG_OUT_TIME_NOT_SET = "Log out time not set for previous attendance entry."
			+ "Please set logout time to continue.";
	
	//Attendance Leave display
	public static final String FAILED_TO_FTECH_DEPARTMENT = "Unable to fetch department information.";
	public static final String SELECT_DAILY_VIEW = "To add/modify/delete entry please enter employee id and select Daily Entry from mode";
	public static final String SELECT_ATTENDANCE_ENTRY_TO_MODIFY = "Please select an attendance entry to modify/delete.";
	public static final String CONFIRM_LAST_LOGOUT = "For employee %s previous log out entry will be set as the last out. Please confirm.";
	public static final String SELECT_MODE_OF_RETRIVAL = "Please select the retrival mode.";
	public static final String OCCATION_IS_EMPTY = "Reason for holiday is empty.";
	public static final String SELECT_AN_ENTRY_TO_DETETE = "Please select a %s to delete";
	public static final String CONFIRM_DATE = "Are you sure you want to delete selected row.";

	//USer Acounts
	public static final String USER_NAME_EMPTY = "USER Name cannot be empty.";
	public static final String PRIMARY_PASSWORD_EMPTY= "Password field cannot be empty";
	public static final String PASSWORD_RETYPE_FIELD_EMPTY = "Confirm password field empty";
	public static final String USER_NAME_LENGHT = "User name can not be less than 5 chars";
	public static final String PASSWORD_FIELD_LENGHT = "Password field cannot be less than 6 chars.";
	public static final String till_uear = "Please select account validity year.";
	public static final String till_month = "Please select account validity  month.";
	public static final String till_date = "Please select account validity day.";
	public static final String PASSWORDS_NOT_EQUAL ="Entered passwords are not equal.";
	public static final String SELECT_USER_TO_MODIFY ="Please select a user account from below list to modify.";
	public static final String SELECT_USER_ACC_TO_DELETE ="Please select a user account from below list of users to delete.";
	public static final String WRONG_PASSWORD = "Entered password is wrong. Please enter correct password.";
	public static final String SAVED_USER_ACCOUNT = "Successfully saved user :  %s.";
	public static final String ACCOUNT_INACTIVE = "User %s is inactive. Do you want to modify?";
	public static final String SELECT_QUESTION = "Please select a security question.";
	public static final String WRONGS_ANSWER = "Provided answer is wrong for the choosen question.";
	public static final String ACCOUNT_EXPIRED_CONTACT_ADMIN = "User account with name %s is expired. Please contact your administrator.";
	public static final String SELECT_QUESTIOn = "Please select security question.";
	public static final String ANSWER_EMPTY = "Answer to security question cannot be empty.";
	public static final String SECURITY_QUESTION_NOT_SET = "Security question is not set. Contact admin.";
	public static final String ANSWER_NOT_MATCHING = "Given answer is not same as the one used while changing login credentials. Please correct your answer.";
	public static final String PASSWORD_IS = "Your password is %s. Please reset your account by selecting modify user account.";
	public static final String USERNAME_NOT_STARING_WITH_COMP_CODE = "User name must start with companycode.";
	public static final String USER_EXISTS = "User name is already used. Choose different one.";
	public static final String LOGIN_DETAILS_SAME = "Password cannot be same as old one.";
	
	
	//Exit
	public static final String CONFORM_EXIT = "Do you want to close the application?";
	public static final String CONFORM_LOGOUT = "DO you want to log out?";

	public interface UIPermission {
		
		public static final String DEFAULT = "000000000000000";
		
		public static final int ATT_ADD = 0;
		public static final int ATT_VIEW = 1;
		public static final int ATT_MOD = 2;
		
		public static final int LEAVE_ADD = 3;
		public static final int LEAVE_VIEW =4;
		public static final int LEAVE_MOD = 5;
		
		public static final int EMP_ADD = 6;
		public static final int EMP_VIEW = 7;
		public static final int EMP_MOD = 8;
		
		public static final int SAL_ADD = 9;
		public static final int SAL_VIEW = 10;
		public static final int SAL_MOD = 11;
		
		public static final int USER_ADD = 12;
		public static final int USER_VIEW = 13;
		public static final int USER_MOD = 14;
		
	}
}
